<!doctype html>
<html lang="zh">
    <head>
        <meta charset="utf-8" />
        <title>天天外链 - {{ $documentdetial->title }}</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="/assets/css/document.css?v=2" rel="stylesheet" type="text/css" />
        <link href="//at.alicdn.com/t/font_2744580_ziwp1ss1w1g.css" rel="stylesheet" type="text/css" />
        <script src="https://nilife.cn/home/js/highlight.min.js"></script>
        <link rel="stylesheet" href="https://nilife.cn/home/css/monokai-sublime.css">
        <script src="/assets/js/jquery.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script>
    </head>

    <body data-topbar="dark" data-spy="scroll" data-target=".right-side-nav" data-offset="175">
        <!-- Begin page -->
        <div id="layout-wrapper">
            <header id="page-topbar">
                <div class="navbar-header">
                    <div class="d-flex">
                        <!-- LOGO -->
                        <div class="navbar-brand-box"> 
                            <img src="/images/logo-light.png">
                        </div>
                        <button type="button" class="btn btn-sm px-3 font-size-24 header-item waves-effect d-lg-none" id="vertical-menu-btn">
                            <i class="mdi mdi-menu"></i>
                        </button>
                    </div>
                    <div class="d-flex">
                        <div class="d-inline-block">
                            <a href="{{ url('/admin/links_lists/lists') }}" class="header-item">外链后台</a>
                        </div>
                        <div class="d-inline-block">
                            <a href="{{ url('/admin/documents/wechat_service') }}" class="header-item">技术支持</a>
                        </div>
                        <div class="d-inline-block">
                            <a href="{{ url('/admin/prices/products_lists') }}" class="header-item">购买会员</a>
                        </div>
                        <div class="d-inline-block">
                            <h5 class="header-item m-0"><span class="badge badge-danger">v1.1.2</span></h5>
                        </div>
                    </div>
                </div>
            </header>
            <!-- ========== Left Sidebar Start ========== -->
            <div class="vertical-menu">
                <div data-simplebar class="h-100">
                    <!--- Sidemenu -->
                    <div class="sidebar-menu">
                        <!-- Left Menu Start -->
                        <ul class="metismenu list-unstyled" id="side-menu">
                            @forelse($menus as $menu)
                            @if($menu["authority"] == 1 || Auth::user()->authority == 3)
                            <li class="menu-title">{{ $menu["title"] }}</li>
                            @endif
                            @foreach($menu["childs"] as $child)
                            @if($child["authority"] == 1 || Auth::user()->authority == 3)
                            <li>
                                <a href="/admin/documents/documents_detail/{{ $child['id'] }}" @if($documentdetial->id == $child["id"]) class="active" @endif>
                                    <i class="{{ $child['icon'] }}"></i>
                                    <span>{{ $child["title"] }}</span>
                                </a>
                            </li>
                            @endif
                            @endforeach
                            @empty
                            <li class="menu-title">当前暂无文档</li>
                            @endforelse
                        </ul>
                    </div>
                    <!-- Sidebar -->
                </div>
            </div>
            <!-- Left Sidebar End -->
            <!-- Start right Content -->
            <div class="main-content">
                <div class="content-article">
                    <h1>{{ $documentdetial->title }}</h1>
                    <content>
                        {!! $documentdetial->msg !!}
                    </content>
                </div>
            </div>
            <!-- end main content-->
        </div>
        <!-- END layout-wrapper -->
        <script src="/assets/js/popimg.js"></script>
        <script>
            $(function(){
                $(".content-article content img").popImg();
            })
        </script>
    </body>
</html>
